package com.frank.loadinglibrary.common.search;

import com.frank.loadinglibrary.base.basecomponent.BaseComponent;
import com.frank.loadinglibrary.common.element.MagnifyElement;
import ohos.agp.components.AttrSet;
import ohos.agp.render.Paint;
import ohos.app.Context;

public class MagnifyComponent extends BaseComponent {

    Paint mPaint = new Paint();
    String pillarColor = "#0000ff";
    String glassColor = "#00ff00";

    public MagnifyComponent(Context context) {
        this(context, null);
    }

    public void setGlassColor(String glassColor) {
        this.glassColor = glassColor;
    }

    public MagnifyComponent(Context context, AttrSet attrSet) {
        this(context, attrSet, null);
    }

    public MagnifyComponent(Context context, AttrSet attrSet, String styleName) {
        super(context, attrSet, styleName);

    }

    @Override
    public void init(Context ctx) {
        config(new MagnifyElement.MagnifyBuilder(this).build());
        super.init(ctx);
    }


}
